import time

from selenium import webdriver
from selenium.webdriver.chrome.service import Service

# 创建浏览器驱动对象

driver_path="../driver/chromedriver.exe"
service=Service(executable_path=driver_path)

driver = webdriver.Chrome(service=service)
# 下载的驱动地址
print(driver.service.path)
# 访问百度首页
driver.get("https://www.baidu.com")

time.sleep(20)

driver.quit()